package com.totoro.redis.lock;

import org.springframework.data.redis.core.RedisTemplate;

public class GlobalLockRedisImpl {

    private final RedisTemplate redisTemplate;
    private final int maxLockSeconds;
    private final long sleepTimeMillis;
    private Thread exclusiveOwnerThread;
    private final String key;

    public GlobalLockRedisImpl(int maxLockSeconds, long sleepTimeMillis, String key, RedisTemplate redisTemplate) {
        this.redisTemplate = redisTemplate;
        this.maxLockSeconds = maxLockSeconds;
        this.sleepTimeMillis = sleepTimeMillis;
        this.key = key;
    }
}
